/**
 * @author yexy
 * @date 2020/6/2 7:12 下午
 * @description
 * 通话套餐类
 */
public class PhoneCombo extends Combo implements CallServiceInterface{
    private int callTimeMinutes;
    private int smsCount;

    public PhoneCombo(int callTimeMinutes, int smsCount,int fee) {
        this.callTimeMinutes = callTimeMinutes;
        this.smsCount = smsCount;
        this.fee = fee;
    }

    public int getCallTimeMinutes() {
        return callTimeMinutes;
    }

    public void setCallTimeMinutes(int callTimeMinutes) {
        this.callTimeMinutes = callTimeMinutes;
    }

    public int getSmsCount() {
        return smsCount;
    }

    public void setSmsCount(int smsCount) {
        this.smsCount = smsCount;
    }

    public int getFee() {
        return fee;
    }

    public void setFee(int fee) {
        this.fee = fee;
    }

    public void show(){
        System.out.println("通话时长是：" + this.callTimeMinutes);
        System.out.println("短信条数是：" + this.smsCount);
        System.out.println("每月资费是：" + this.fee);
    }

    @Override
    public void callShow(int callMinutes, SIMCard simCard) {
        System.out.println("通话时长是：" + callMinutes);
        simCard.show();
    }
}
